// main主页的接口
import { request } from "@/utils/http"

// 1.轮播图


// 2.分类列表
const getCategory = () => {
    return request({
        url:'/user/category',
        method:'GET'
    })
}



// 3.文章列表
const getArticlePage = (data) => {
    return request({
        url:'/user/article',
        method:'POST',
        data,
    })
}
const userMain = (data) => {
    return request({
        method:'GET',
        url:'/user/main',
    })
}


export {
    getCategory,getArticlePage,userMain
}